#pragma once

#include <iostream>
#include <unistd.h>
#include <fcntl.h>
#include <cerrno>
#include <cstring>

void setNonBlock(int fd)
{
    int fl = fcntl(fd, F_GETFL);
    if(fl < 0)
    {
        std::cerr << "fcntl : " << strerror(errno) << std::endl;
        return;
    }
    fcntl(fd, F_SETFL, fl | O_NONBLOCK);
}

void printLog()
{
    printf("%s", "this is a log\n");
}


void downLoad()
{
    printf("%s", "this is a download\n");
}


void executeSql()
{
    printf("%s", "this is a executeSql\n");
}
